package com.itheima.HomeWork;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class Demo04 {
    public static void main(String[] args) {
        Map<String ,Integer> map=new HashMap<>();
        map.put("刘岩",2100);
        map.put("张亮",1700);
        map.put("诸葛亮",1800);
        map.put("灭绝师太",2600);
        map.put("东方不败",3800);
        //更改工资
        map.put("刘岩",map.get("刘岩")+300);

        map.forEach(new BiConsumer<String, Integer>() {
            @Override
            public void accept(String s, Integer integer) {
                System.out.println(s+":"+integer);
            }
        });
    }
}
